﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>


<link href="../../CSS/style.css" rel="stylesheet" type="text/css" />

<script src="../../Scripts/ddaccordion.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.1.4.2.min.js" type="text/javascript"></script>


<script type="text/javascript">


    ddaccordion.init({
        headerclass: "headerbar", //Shared CSS class name of headers group
        contentclass: "submenu", //Shared CSS class name of contents group
        revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
        mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
        collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
        defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
        onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
        animatedefault: false, //Should contents open by default be animated into view?
        persiststate: true, //persist state of opened contents within browser session?
        toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
        togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
        animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
        oninit: function (headers, expandedindices) { //custom code to run when headers have initalized
            //do nothing
        },
        onopenclose: function (header, index, state, isuseractivated) { //custom code to run whenever a header is opened or closed
            //do nothing
        }
    })


</script>
<!--menu ddaccordion-->
<style type="text/css">

.urbangreymenu{
width: 190px; /*width of menu*/
}

.urbangreymenu .headerbar{
font: bold 13px Verdana;
color: Blue;
height:11px;
/*background-image: url(../../Content/images/bg_head05.gif);*/
background-repeat:no-repeat;
/*background: #606060 url(arrowstop.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/
margin-bottom: 0; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 7px 0px 7px 31px; /*31px is left indentation of header text*/
}

.urbangreymenu .headerbar a{
text-decoration: none;
color: black;
font: bold 13px Verdana;
display: block;
}

.urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of content*/
}

.urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
padding-left:10px;
 
}

.urbangreymenu ul li a{
font: normal 12px Arial;
  

padding: 5px;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}


</style>


<%if (CoVanHocTapProject.Infrastructure.Publics.sinhVienDangNhap!=null)
 {%>
        <%Html.RenderAction("DangNhapThanhCong", "TrangChu"); %>
 <%} %>
<%else
 { %>
<%--<div class="urbangreymenu">

        <h3 class=headerbar style="font-size:larger;"></h3>
        <ul class=submenu>
            <li >--%>
        
              <table>
                <tr>
                
                        <td >
                
                        <% Html.EnableClientValidation(); %>
                         
                 
                            <%using (Html.BeginForm("DangNhap", "TrangChu"))
                              { %>
                              <table style="margin: 0 auto; padding-top:0">
                                <tr>
                                    <td colspan=2>MSSV</td>
                                </tr>
                                <tr>
                                    <td colspan=2><input type="text" name="txtTenDangNhap" style="width:170px" /></td>
                                </tr>
                                <tr>
                                    <td colspan=2>Mật khẩu</td>
                                </tr>
                                <tr>
                                    <td colspan=2><input type="password" name="txtMatKhau" style="width:170px" id="defaultKeypad" /></td>
                                </tr>
                                <tr >
                                    <td><input type="submit" name="subDangNhap" value="Đăng nhập" /></td>
                                    <td><%= Html.ActionLink("Quên mật khẩu?","QuenMatKhau","Emails") %></td>
                                    
                                </tr>
                                <tr>
                                    <%--<td><a href="/DangKy">Đăng ký</a></td>--%>
                                </tr>
                              </table>
                            
                                
                            <%} %>
                
                         <%--<%=Html.ValidationSummary(true, "")%>--%>
             
                        </td>
                    
                </tr>
              </table>
               
           
            <%--</li>
            

        
        </ul>
</div>--%>
<%} %>

